// 自动生成模板CaseManagement
package flaud

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// 案件管理 结构体  CaseManagement
type CaseManagement struct {
	global.GVA_MODEL
	CaseNumber              *string  `json:"caseNumber" form:"caseNumber" gorm:"column:case_number;comment:;" binding:"required"`                                         //卷宗号
	Year                    *string  `json:"year" form:"year" gorm:"column:year;comment:;" binding:"required"`                                                            //年份
	Cause                   *string  `json:"cause" form:"cause" gorm:"column:cause;comment:;" binding:"required"`                                                         //案由
	BasicFacts              *string  `json:"basicFacts" form:"basicFacts" gorm:"column:basic_facts;comment:;type:text;" binding:"required"`                               //基本事实
	JudicialFacts           *string  `json:"judicialFacts" form:"judicialFacts" gorm:"column:judicial_facts;comment:;type:text;" binding:"required"`                      //查明事实
	JudgmentReason          *string  `json:"judgmentReason" form:"judgmentReason" gorm:"column:judgment_reason;comment:;type:text;" binding:"required"`                   //裁判理由
	LegalBasis              *string  `json:"legalBasis" form:"legalBasis" gorm:"column:legal_basis;comment:;" binding:"required"`                                         //法律依据
	AmountInvolved          *float64 `json:"amountInvolved" form:"amountInvolved" gorm:"column:amount_involved;comment:;" binding:"required"`                             //涉案金额
	EvidenceType            *string  `json:"evidenceType" form:"evidenceType" gorm:"column:evidence_type;comment:;" binding:"required"`                                   //证据类型
	JudgmentResult          *string  `json:"judgmentResult" form:"judgmentResult" gorm:"column:judgment_result;comment:;type:text;" binding:"required"`                   //裁判结果
	PerpetratorTrait        *string  `json:"perpetratorTrait" form:"perpetratorTrait" gorm:"column:perpetrator_trait;comment:;" binding:"required"`                       //行为人特质
	CrimeElements           *string  `json:"crimeElements" form:"crimeElements" gorm:"column:crime_elements;comment:;" binding:"required"`                                //罪量要素
	MitigatingCircumstances *string  `json:"mitigatingCircumstances" form:"mitigatingCircumstances" gorm:"column:mitigating_circumstances;comment:;" binding:"required"`  //减轻情节
	DependentVariables      *string  `json:"dependentVariables" form:"dependentVariables" gorm:"column:dependent_variables;comment:;" binding:"required"`                 //因变量
	SentenceAfterConviction *string  `json:"sentenceAfterConviction" form:"sentenceAfterConviction" gorm:"column:sentence_after_conviction;comment:;" binding:"required"` //入罪后量刑
}

// TableName 案件管理 CaseManagement自定义表名 cases_management
func (CaseManagement) TableName() string {
	return "cases_management"
}
